var OfflineAudioContext = function OfflineAudioContext(a, b, c) {
    //如果不能new  要抛出一个错误
    // if(this instanceof OfflineAudioContext){
    if (c < 22050 || c > 96000 || c == undefined) {
        throw new DOMException('Failed to construct \'OfflineAudioContext\': The sampleRate provided (4.41001e+10) is outside the range [3000, 768000].')
    }
    // var OfflineAudioContext1 = {};
    OfflineAudioContext.prototype.__proto__ = BaseAudioContext.prototype
    OfflineAudioContext.prototype.length = b
    OfflineAudioContext.prototype.sampleRate = c
    OfflineAudioContext.prototype.currentTime = 0
    return catvm.proxy(this)
    // }else{
    //     throw new TypeError("Failed to construct 'OfflineAudioContext': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");
    // }
}//构造函数
catvm.safefunction(OfflineAudioContext); //tostring 保护
//设置原型链上显示的名字***************************************************************************
Object.defineProperties(OfflineAudioContext.prototype, {
    [Symbol.toStringTag]: {
        value: "OfflineAudioContext",
        configurable: true
    }
});

// 原型指向原型父亲***************************************************************************
// OfflineAudioContext = {};
OfflineAudioContext.prototype.__proto__ = BaseAudioContext.prototype
//该环境下的属性和方法***************************************************************************
OfflineAudioContext.prototype.startRendering = function startRendering() {
    // debugger;
};
catvm.safefunction(OfflineAudioContext.prototype.startRendering);
OfflineAudioContext.prototype.oncomplete = null;
//代理***************************************************************************
OfflineAudioContext = catvm.proxy(OfflineAudioContext)